package com.dream.technology.components.riskControl;

/**
 * 描述：符号常量
 *
 * @author chen_q_i@163.com
 * 2018/12/6 : 15:10.
 * @version : 1.0
 */
public interface SymbolConstan {

    /**
     * |EQ |等于|等于,相当于==|
     * |NEQ|不等于|不等于，相当于!=|
     * |LT|小于|小于，相当于<|
     * |GT|大于|大于，相当于>|
     * |ELT|小于等于|小于等于，相当于<=|
     * |EGT|大于等于|大于等于，相当于>=|
     * |OPEN_INTERVAL|开区间|开区间(a,b)，相当于a<x<b|
     * |LEFT_OPEN_INTERVAL|左开区间|左开区间(a,b]，相当于a<x<=b|
     * |RIGHT_OPEN_INTERVAL|右开区间|右开区间[a,b)，相当于a<=x<b|
     * |CLOSE_INTERVAL|闭区间|闭区间[a,b]，相当于a<=x<=b|
     * |IN|包含|包含|
     * |NIN|不包含|不包含|
     */
    String INTERVAL = "INTERVAL";
    String OPEN_INTERVAL = "OPEN_INTERVAL";

    String LEFT_OPEN_INTERVAL = "LEFT_OPEN_INTERVAL";
    String RIGHT_OPEN_INTERVAL = "RIGHT_OPEN_INTERVAL";
    String CLOSE_INTERVAL = "CLOSE_INTERVAL";
    String EQ_DESC = "等于";
    String LT_DESC = "小于";
    String GT_DESC = "大于";
    String ELT_DESC = "小于等于";
    String EGT_DESC = "大于等于";
    String RELATION_AND_DESC = "并且";
    String RELATION_OR_DESC = "或者";
    String ERROR_DESC = "表达式有误，无法解析";
    //流程中的各项类型 0:用户标签 1：规则 2：规则集 3：子流程
    String FLOW_ITEM_TYPE_TAG = "0";
    String FLOW_ITEM_TYPE_RULE = "1";
    String FLOW_ITEM_TYPE_COLL = "2";
    String FLOW_ITEM_TYPE_SON_FLOW = "3";

    // 规则处理器  1 数字类型 2 Boolean 3 radio 4 checkBox 5 时间 6 字符串
    Integer NUMBER_MACTHER= 1;
    Integer BOOLEAN_MACTHER= 2;
    Integer RADIO_MACTHER= 3;
    Integer CHECKBOX_MACTHER= 4;
    Integer DATETIME_MACTHER= 5;
    Integer STRING_MACTHER= 6;

    Integer FLOW_ACTION_PASS= 1;
    Integer FLOW_ACTION_STOP= 0;

    // 规则状态 0 拒绝 1 通过
    Integer RULE_ACTION_PASS=1;
    Integer RULE_ACTION_STOP=0;

    String SEVER_STR= "Sever";

    // 流程类型 0主流程1 子流程
    Integer FLOW_TYPE_PARENT= 0;
    Integer FLOW_TYPE_SON= 1;

    Integer FLOW_RESULT_STOP= 1;
    Integer FLOW_RESULT_PASS= 0;


}
